<?php if (!defined('IN_DSXCMS')) die('Access Denied!');?><!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title><?php echo $_G[title];?>-后台管理中心</title>
    <meta name="keywords" content="<?php echo $_G[keywords];?>">
    <meta name="description" content="<?php echo $_G[description];?>">
    <meta name="render" content="webkit">
    <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="icon" href="/static/images/common/favicon.png">
    <link rel="stylesheet" type="text/css" href="/static/css/admin.css">
    <script src="/static/js/jquery.js" type="text/javascript"></script>
    <script src="/static/js/common.js" type="text/javascript"></script>
</head>
<body>
<div class="mcenter-header">
    <div class="header">
        <strong class="logo">后台管理中心</strong>
        <div class="right-menu">
            <a href="<?php echo U('/'); ?>" target="_blank">网站首页</a>
            <a href="<?php echo U('m=admin&c=logout'); ?>">退出登录</a>
        </div>
    </div>
</div>
<div class="sidebar">
    <div class="sidebar-content">
        <div class="scroll">
            <div class="menus" id="menus">
                <dl>
                    <dd><a><i class="iconfont icon-radioboxfill"></i>系统设置</a></dd>
                    <dt>
                        <ul>
                            <li><a rel="item" data-action="<?php echo U('c=setting&a=basic'); ?>">基本设置</a></li>
                            <li><a rel="item" data-action="<?php echo U('c=setting&a=optimiz'); ?>">优化设置</a></li>
                            <li><a rel="item" data-action="<?php echo U('c=setting&a=register'); ?>">注册设置</a></li>
                            <li><a rel="item" data-action="<?php echo U('c=setting&a=attach'); ?>">附件设置</a></li>
                            <li><a rel="item" data-action="<?php echo U('c=setting&a=water'); ?>">图片水印</a></li>
                            <li><a rel="item" data-action="<?php echo U('c=setting&a=weixin'); ?>">微信设置</a></li>
                            <li><a rel="item" data-action="<?php echo U('c=setting&a=alipay'); ?>">支付宝设置</a></li>
                            <li><a rel="item" data-action="<?php echo U('c=setting&a=sms'); ?>">短息平台设置</a></li>
                            <li><a rel="item" data-action="<?php echo U('c=app'); ?>">应用管理</a></li>
                        </ul>
                    </dt>
                </dl>
                <dl>
                    <dd><a><i class="iconfont icon-peoplefill"></i>用户管理</a></dd>
                    <dt>
                        <ul>
                            <li><a rel="item" data-action="<?php echo U('c=member&a=index'); ?>">会员列表</a></li>
                            <li><a rel="item" data-action="<?php echo U('c=membergroup&a=index'); ?>">分组管理</a></li>
                        </ul>
                    </dt>
                </dl>
                <dl>
                    <dd><a><i class="iconfont icon-attentionfill"></i>界面管理</a></dd>
                    <dt>
                        <ul>
                            <li><a rel="item" data-action="<?php echo U('c=menu'); ?>">菜单管理</a></li>
                            <li><a rel="item" data-action="<?php echo U('c=ad'); ?>">广告管理</a></li>
                            <li><a rel="item" data-action="<?php echo U('c=block&a=namelist'); ?>">内容板块</a></li>
                        </ul>
                    </dt>
                </dl>
                <dl>
                    <dd><a><i class="iconfont icon-presentfill"></i>商品管理</a></dd>
                    <dt>
                        <ul>
                            <li><a rel="item" data-action="<?php echo U('c=item&a=itemlist'); ?>">商品列表</a></li>
                            <li><a rel="item" data-action="<?php echo U('c=item&a=recommend_list'); ?>">首页推荐</a></li>
                            <li><a rel="item" data-action="<?php echo U('c=itemcat&a=index'); ?>">商品分类</a></li>
                        </ul>
                    </dt>
                </dl>
                <dl>
                    <dd><a><i class="iconfont icon-shopfill"></i>店铺管理</a></dd>
                    <dt>
                        <ul>
                            <li><a rel="item" data-action="<?php echo U('c=shop&a=itemlist'); ?>">店铺列表</a></li>
                            <li><a rel="item" data-action="<?php echo U('c=shop&a=pending'); ?>">等待审核</a></li>
                        </ul>
                    </dt>
                </dl>
                <dl>
                    <dd><a><i class="iconfont icon-rechargefill"></i>交易管理</a></dd>
                    <dt>
                        <ul>
                            <li><a rel="item" data-action="<?php echo U('c=order&a=itemlist'); ?>">订单记录</a></li>
                            <li><a rel="item" data-action="<?php echo U('c=trade&a=itemlist'); ?>">交易记录</a></li>
                        </ul>
                    </dt>
                </dl>
                <dl>
                    <dd><a><i class="iconfont icon-newsfill"></i>文章管理</a></dd>
                    <dt>
                        <ul>
                            <li><a rel="item" data-action="<?php echo U('c=post&a=add'); ?>">发布文章</a></li>
                            <li><a rel="item" data-action="<?php echo U('c=post&a=itemlist'); ?>">文章列表</a></li>
                            <li><a rel="item" data-action="<?php echo U('c=postcatlog&a=itemlist'); ?>">分类管理</a></li>
                            <li><a rel="item" data-action="<?php echo U('c=postcatlog&a=merge'); ?>">合并分类</a></li>
                        </ul>
                    </dt>
                </dl>

                <dl>
                    <dd><a><i class="iconfont icon-messagefill"></i>微信管理</a></dd>
                    <dt>
                        <ul>
                            <li><a rel="item" data-action="<?php echo U('c=wxmenu'); ?>">菜单设置</a></li>
                            <li><a rel="item" data-action="<?php echo U('c=wxmaterial'); ?>">素材管理</a></li>
                            <li><a rel="item" data-action="<?php echo U('c=wxnews'); ?>">图文消息</a></li>
                        </ul>
                    </dt>
                </dl>

                <dl>
                    <dd><a><i class="iconfont icon-babyfill"></i>页面管理</a></dd>
                    <dt>
                        <ul>
                            <li><a rel="item" data-action="<?php echo U('c=page&a=add'); ?>">新建页面</a></li>
                            <li><a rel="item" data-action="<?php echo U('c=page&a=itemlist'); ?>">页面列表</a></li>
                            <li><a rel="item" data-action="<?php echo U('c=page&a=category'); ?>">页面分类</a></li>
                        </ul>
                    </dt>
                </dl>

                <dl>
                    <dd><a><i class="iconfont icon-tagfill"></i>其他项目</a></dd>
                    <dt>
                        <ul>
                            <li><a rel="item" data-action="<?php echo U('c=material'); ?>">素材管理</a></li>
                            <li><a rel="item" data-action="<?php echo U('c=district'); ?>">地区管理</a></li>
                            <li><a rel="item" data-action="<?php echo U('c=express'); ?>">快递管理</a></li>
                            <li><a rel="item" data-action="<?php echo U('c=link'); ?>">友情链接</a></li>
                        </ul>
                    </dt>
                </dl>
            </div>
        </div>
    </div>
</div>
<div class="mainframe">
    <div class="main-content"><iframe name="mainframe" id="mainframe" src="<?php echo U('c=index&a=wellcome'); ?>" frameborder="0" style="width: 100%; height: 100%; position: absolute; display: block;"></iframe></div>
</div>
<script type="text/javascript">
    $("#menus dl").each(function () {
        var self = this;
        $(this).find('dd').on('click', function () {
            $(self).find('dt').toggle();
        });
    });
    $("a[rel=item]").on('click', function () {
        $("#mainframe").attr('src', $(this).attr('data-action'));
        $("a[rel=item]").removeClass('cur');
        $(this).addClass('cur');
    });
</script>
</body>
</html>